import request from '@/config/axios'

export interface OrderInfoVO {
  id: number // 编号
  orderNo: string // 订单号
}

// 批量生成订单号，一次生成10个
export const batchGenNo = async () => {
  return await request.post({ url: `/custom/order/batchGenNo` })
}

// 查询生成的订单号列表
export const queryNoList = async () => {
  return await request.get({ url: `/custom/order/queryNoList` })
}

// 抢单
export const grabOrders = async () => {
  return await request.post({ url: `/custom/order/grabOrders` })
}

// 查询全部订单列表
export const listByAll = async () => {
  return await request.get({ url: `/custom/order/listByAll` })
}
